/**
 * Created by Administrator on 2017/7/21.
 */
$.ajax({
    type: 'get',
    url: baseUrl + 'publicInfo/lxfs',
    data: '',
    beforeSend: function(){
        Loading();
    },
    success: function(response){
        closeLoading();
        if(response.responseCode == '1000'){
            if(response.content.length > 0){
                for(var i = 0; i< response.content.length; i++){
                    $('#ulList').append('<li><div><span><i class="fa fa-user-circle hornIcon"></i>' + response.content[i].xm + '</span><span><i class="fa fa-university hornIcon"></i>' + response.content[i].dwmc + '</span><span><i class="fa fa-building hornIcon"></i>' + response.content[i].lxms + '</span><span><i class="fa fa-phone hornIcon"></i>' + response.content[i].lxdh.substr(0,3) + '&nbsp-&nbsp' + response.content[i].lxdh.substr(3,4) + '&nbsp-&nbsp' + response.content[i].lxdh.substr(7,4) + '</span></div> </li>')
                }
            } else {
                $('#ulList').css('display','none');
                Msg('暂无数据');
            }
        } else {
            $('#ulList').css('display','none');
            Msg();
        }
    },
    error: function(){
        closeLoading();
        Msg();
    }
})